package com.zhifou.enums;

/**
 * @author 知否技术
 * @description TODO
 * @date 2023-02-23 9:15
 */
public enum ResultCodeEnum {
    SUCCESS(200, "操作成功"),
    NOT_FOUND(404, "资源不存在"),
    INTERNAL_SERVER_ERROR(500, "服务器内部错误");

    ResultCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    private int code;
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
